package com.itluma.isWOak.service;

import com.github.pagehelper.PageInfo;
import com.itluma.isWOak.pojo.RoleInfo;
import com.itluma.isWOak.vo.RolesForm;

import java.util.List;

/**
 * @author ms
 * @create 2021-04-10 10:11
 */
public interface RoleService {

    //采用PageHelper进行分页
    PageInfo<RoleInfo> page(Integer page, Integer limit);

    boolean add(RolesForm rolesForm);


    //根据用户id获取rolemodele
    RoleInfo getByRid(String id);


    //根据rid删除角色以及权限
    boolean deleteByRid(String id);

    //修改角色以及权限
    boolean update(RolesForm rolesForm);

    List<RoleInfo> list();
}
